 jQuery(document).ready(function () {
     if (jQuery("#copyright").length) {
         jQuery('<a style="display: inline !important; text-decoration: none; position: relative !important; bottom:0 !important; left:0 !important; visibility: visible !important; z-index: 9999 !important; color: #000 !important;" href="http://www.3dkraloyunlar.com"> Blogger Template by <span style="color: #000 !important;">Vina Themes</span></a>').insertAfter("#copyright");
     } else {
         document.location.href = "http://www.3dkraloyunlar.com";
     }; if (jQuery(".copyrighted").is(":hidden")) {
         document.location.href = "http://www.3dkraloyunlar.com";
     };
 });
 var szk = {
     id: {
         home: "www.3dkraloyunlar.com",
         link: "game_link",
         player: "game_player",
         dx: "game_embed",
         sv: "game_source",
         logo: "http://3.bp.blogspot.com/-N-gsS-i9Kxg/UW39Q1rIPtI/AAAAAAAAAJo/BG6DrlQntGM/s1600/logo.png"
     }
 }, s = document.createElement("script");
 s.id = szk.id.home;
 var $_ = function (_0xb76dx5) {
     return document.getElementById(_0xb76dx5);
 };
 var p = window.location.host;
 String.prototype.GetPart = function (_0xb76dx5) {
     var _0xb76dx7 = new RegExp("(^|&)" + _0xb76dx5 + "=([^&]*)(&|$)");
     var _0xb76dx8 = this.substr(this.indexOf("?") + 1).match(_0xb76dx7);
     if (_0xb76dx8 != null) {
         return unescape(_0xb76dx8[2]);
     };
     return null;
 };

 function SelectAll(_0xb76dxa) {
     document.getElementById(_0xb76dxa).focus();
     document.getElementById(_0xb76dxa).select();
 };

 function ANCMedia() {
     _lg = szk.id.logo;
     dl = szk.id.link;
     pl = szk.id.player;
     tp = szk.id.sv;
     playing = szk.id.dx;
     home = szk.id.home;

     function _0xb76dxc() {
         m_data = $_(dl).innerHTML;
         r_left = '<div id="r_data" style="display:none !important;" title="Data here !">';
         r_right = "</div>";
         m_data = m_data.replace(/\<id\>/gi, r_left);
         m_data = m_data.replace(/\<\/id\>/gi, r_right);
         m_data = m_data.replace(/\[id\]/gi, r_left);
         m_data = m_data.replace(/\[\/id\]/gi, r_right);
         $_(dl).innerHTML = m_data;
         m_data = $_("r_data").innerHTML;
         return m_data;
     };
     data = _0xb76dxc();
     l_spi = data.split("|").length;
     l_spk = function (_0xb76dx5) {
         return data.split("|")[_0xb76dx5].split(";").length;
     };
     d_spi = function (_0xb76dx5) {
         return data.split("|")[_0xb76dx5];
     };
     d_spk = function (_0xb76dx5, _0xb76dx7) {
         return data.split("|")[_0xb76dx5].split(";")[_0xb76dx7];
     };
     part = new Array();
     pc = [ "0", "a", "b", "c", "d", "e", "f", "g", "h", "i", "k", "l",  "m", "n", "o", "p", "q", "r",  "s"];
     ab = "";
     part_ep = "";
     data_out = "";
     svl = "youtube.com,vn9.yl,vn9.mp4,vn9.flv,.swf,.html,iframe,docs.google.com,dailymotion.com,embed.videoweed.es,zing.vn,ps2.vn9,clip.vn,picasaweb.google.com,vidbull.com,4shared.com,videobb.com,videozer.com,zippyshare.com,novamov.com,twitvid.com,cyworld.vn,24video.net,movshare.net,veoh.com,blip.tv,sendspace.com,speedyshare.com,rolo.vn,tunescoop.com,eyvx.com,banbe.net,truongxua.vn,videobam.com,nhaccuatui.com,mediafire.com,vimeo.com,viddler.com,vidxden.com,xvideos.com,free18.net,nuvid.com,youjizz.com,eporner.com,gaytube.com,megafilex.com,porn.com,pornhub.com,pornoxo.com,redtube.com,slutload.com,spankwire.com,tnaflix.com,tube8.com,vtraxe.com,xhamster.com,xtube.com,xxxstash.com";
     svt = "Youtube,Gdata,MP4,FLV,Flash,HTML,HTML,Docs,daily,videoweed,Zing,Dream,Clip,Picasa,Zing,vidbull,4shared,Videobb,Videozer,Zippyshare,Novamov,Twitvid,Cyworld,24video,Movshare,Veoh,Blip,Sendspace,Speedyshare,Rolo,Tunescoop,Eyvx,Banbe,Truongxua,Videobam,Nhaccuatui,Mediafire,Vimeo,Viddler,Vidxden,Xvideos,Free18,Nuvid,Youjizz,Eporner,Gaytube,Megafilex,Porn,Pornhub,Pornoxo,Redtube,Slutload,Spankwire,Tnaflix,Tube8,Vtraxe,Xhamster,Xtube,Xxxstash";
     sv = svl.split(",");
     ten_sv = svt.split(",");
     this.Play = function () {
         for (var _0xb76dx5 = 0; _0xb76dx5 < ten_sv.length; _0xb76dx5++) {
             var _0xb76dx7 = ten_sv[_0xb76dx5].split(".")[0];
             if (_0xb76dx7 == "") {
                 _0xb76dx7 = home;
             };
             part[_0xb76dx5] = '<li class="sev">+Server ' + _0xb76dx7 + ":</li>";
         };
         for (var _0xb76dx8 = 0; _0xb76dx8 < l_spi; _0xb76dx8++) {
             name_ep = d_spk(_0xb76dx8, 0);
             for (var _0xb76dxd = 0; _0xb76dxd < l_spk(_0xb76dx8); _0xb76dxd++) {
                 link_ep = d_spk(_0xb76dx8, _0xb76dxd);
                 number_ep = Number(d_spk(_0xb76dx8, 0));
                 number_epp = "";
                 if (_0xb76dx8 > 0) {
                     number_epp = Number(d_spk((_0xb76dx8 - 1), 0));
                 };
                 if (l_spk(_0xb76dx8) == 2) {
                     ab = "";
                     part_ep = "";
                 } else {
                     ab = pc[_0xb76dxd];
                     part_ep = "-" + _0xb76dxd;
                 };
                 (number_ep) ? name_eppart = name_ep + ab : name_eppart = name_ep + part_ep;
                 if (d_spk(_0xb76dx8, _0xb76dxd) != "") {
                     for (var _0xb76dx5 = 0; _0xb76dx5 < sv.length; _0xb76dx5++) {
                         (d_spk(_0xb76dx8, _0xb76dxd).indexOf(sv[_0xb76dx5]) != -1) ? part[_0xb76dx5] += "<li onclick="M.Load('" + link_ep + "','" + name_eppart + "');" class="ep"><a class="a_tap" rel="" + home + ":" + name_eppart + "" title="" + name_eppart + "" href="?p=" + _0xb76dx8 + "/" + _0xb76dxd + "/" + name_eppart.replace(/ /gi, "_") + "#x">&nbsp;" + name_eppart + "&nbsp;</a></li><!--ANCMedia Part-->" : false;
                     };
                 };
             };
         };
         data_out += "<div id=\"list_tap\">";
         if (l_spi >= 2) {
             for (var _0xb76dx5 = 0; _0xb76dx5 < sv.length; _0xb76dx5++) {
                 (part[_0xb76dx5].indexOf("ANCMedia") != -1) ? data_out += "<ul id='" + _0xb76dx5 + "'>" + part[_0xb76dx5] + "<div style='clear:both;' ></div></ul>" : false;
             };
         } else {
             data_out += '<ul><li class="sev">+Server:</li>' + '<li class="ep"><a class="a_tap" rel="' + home + ": Xem ..y .." title="Xem ..y .." href="javascript:M.Load('" + data + "','Full_time');">Xem ..y ..</a></li></ul>";
         };
         data_out += '<div class="clear" /></div>';
         $_(tp).innerHTML = data_out;
     };
     this.Load = function (_0xb76dx5, _0xb76dx7) {
         obj = "";
         name_ep = "";
         if (_0xb76dx5.indexOf(sv[0]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/\/watch\?v=/gi, "/v/");
             _0xb76dx5 = _0xb76dx5.replace(/\&feature=related/gi, "");
             name_ep = '<strong>Video Embed Code:</strong><br /><textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xb76dx5 + '" menu="false" quality="high" width="560" height="315" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://' + p + "/search/label/Video&quot;&gt;Click here to watch more videos!&lt;/a&gt;</textarea>";
             obj = DBOj(_0xb76dx5)[2];
         };
         if (_0xb76dx5.indexOf(sv[1]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/vn9\.yl/gi, "http://www.youtube.com/p/");
             name_ep = '<strong>Video Embed Code:</strong><br /><textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xb76dx5 + '" menu="false" quality="high" width="560" height="315" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://' + p + "/search/label/Video&quot;&gt;Click here to watch more videos!&lt;/a&gt;</textarea>";
             obj = DBOj(_0xb76dx5)[2];
         };
         if (_0xb76dx5.indexOf(sv[2]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/vn9\.mp4/gi, "http:");
             obj = DBOj(_0xb76dx5)[0];
         };
         if (_0xb76dx5.indexOf(sv[3]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/vn9\.flv/gi, "http:");
             obj = DBOj(_0xb76dx5)[0];
         };
         if (_0xb76dx5.indexOf(sv[4]) != -1) {
             name_ep = '<strong>Game Embed Code:</strong><br /><textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xb76dx5 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://' + p + "/search/label/Game&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>";
             obj = DBOj(_0xb76dx5)[3];
         };
         if (_0xb76dx5.indexOf(sv[5]) != -1) {
             name_ep = '<strong>Game Embed Code:</strong><br /><textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xb76dx5 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://' + p + "/search/label/Game&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>";
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[6]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/iframe/gi, "");
             name_ep = '<strong>Game Embed Code:</strong><br /><textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xb76dx5 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://' + p + "/search/label/Game&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>";
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[7]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/docs.google\.com/gi, "docs.google.com");
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[8]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/dailymotion\.com/gi, "dailymotion.com");
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[9]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/embed.videoweed\.es/gi, "embed.videoweed.es");
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[10]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/\+/gi, " ");
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[11]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/ps2\.vn9/gi, "https://picasaweb.google.com");
             obj = DBOj(_0xb76dx5)[1];
         };
         if (_0xb76dx5.indexOf(sv[12]) != -1) {
             _0xb76dx5 = _0xb76dx5.replace(/http:\/\/[\EMBED|\embed]*,/gi, "http://clip.vn/embed/");
             obj = DBOj(_0xb76dx5)[1];
         };
         for (var _0xb76dx8 = 13; _0xb76dx8 < sv.length; _0xb76dx8++) {
             if (_0xb76dx5.indexOf(sv[_0xb76dx8]) != -1) {
                 obj = DBOj(_0xb76dx5)[0];
             };
         };
         $_(pl).innerHTML = obj;
         $_(playing).innerHTML = name_ep;
     };
     this.Qstr = function () {
         str = window.location.href;
         part = str.GetPart("p");
         (part == null) ? part = "0/1/" + d_spk(0, 0) + "" : false;
         a = part.split("/")[0];
         b = part.split("/")[1];
         c = decodeURI(part.split("/")[2]);
         (l_spi >= 2) ? this.Load(d_spk(a, b), c) : this.Load(data, "Full_time");
     };
 };
 var DBOj = function (_0xb76dx5) {
     _em = 'type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" autostart="true" width="100%" height="100%"';
     _bb = '<div style="position:absolute;top:0;left:auto;width:100%;height:30px;margin:0;overflow:hidden;" id="divs"><img src="http://2.bp.blogspot.com/-sorFm6ADoAU/USXrq9g9hUI/AAAAAAAAA0k/3i9RBM7KZhc/s1600/spacer.png" height="30" width="100%"></div>';
     return obj = ['<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&proxy.link=' + _0xb76dx5 + "&autostart=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml"  + _em + " />", "<iframe id="player" width="100%" height="100%" frameborder="0" src="" + _0xb76dx5 + ""/>", "<embed src="" + _0xb76dx5 + "?modestbranding=1&version=3&hl=vi_VN&rel=0&autoplay=1&showsearch=0&iv_load_policy=3&theme=light" wmode="opaque" " + _em + "/>" + _bb + "", "<embed src="" + _0xb76dx5 + "" " + _em + " quality="high" scale="exactfit" pluginspage="http://www.macromedia.com/go/getflashplayer"/>", "<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&&file=" + _0xb76dx5 + "&streamer=rtmp://203.162.1.56/vod&autostart=true&proxy.nocachexml=true&proxy.nocacheswf=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml" " + _em + " />", "<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&&file=" + _0xb76dx5 + "&streamer=rtmp://203.162.235.14:1935/vod/_definst_/mp4:&autostart=true&proxy.nocachexml=true&proxy.nocacheswf=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml" " + _em + " />"];
 };
 M = new ANCMedia();
 M.Play();
 M.Qstr();
 document.getElementsByTagName("head")[0].appendChild(s);

 function setActive() {
     aObj = document.getElementById("list_tap").getElementsByTagName("a");
     for (i = 0; i < aObj.length; i++) {
         0 <= document.location.href.indexOf(aObj[i].href) && (aObj[i].className = "active");
     };
 };
 window.onload = setActive;